quick hack to restore wotrkingness to regular gifs. Creates a RGBA buffer independen...
authorJonathan Blandford <jrb@src.gnome.org>
Sat, 30 Oct 1999 23:17:06 +0000 (23:17 +0000)
committerJonathan Blandford <jrb@src.gnome.org>
Sat, 30 Oct 1999 23:17:06 +0000 (23:17 +0000)
gdk-pixbuf/io-gif.c

index d3bbcbfedfc164e87d40299a9d66666447deb217..1e3781301572d723205b9fe7b0b224764aa7ca33 100644 (file)
@@ -382,7 +382,7 @@ ReadImage (FILE *file,
        }
 
        context->pixbuf = gdk_pixbuf_new (ART_PIX_RGB,
-                                         context->gif89.transparent,
+                                         TRUE,//context->gif89.transparent,
                                          8,
                                          context->width,
                                          context->height);
@@ -390,7 +390,7 @@ ReadImage (FILE *file,
        dest = gdk_pixbuf_get_pixels (context->pixbuf);
        while ((v = LWZReadByte (file, FALSE, c)) >= 0) {
 //             g_print ("in inner loop: xpos = %d, ypos = %d\n", xpos, ypos);
-               if (context->gif89.transparent) {
+               if (TRUE || context->gif89.transparent) {
                        temp = dest + (ypos * len + xpos) * 4;
                        *temp = cmap [0][(guchar) v];
                        *(temp+1) = cmap [1][(guchar) v];